# coding=utf8
import pymongo

client = pymongo.MongoClient(host='192.168.253.129')
db = client['Baike']
dict_block_coll = db['BlockDict']


def add_block_dict():
    dict_block_coll.insert_many([
        {
            'Keyword': '/vbaike/'
        }, {
            'Keyword': '/pic/'
        }, {
            'Keyword': '/article/'
        }, {
            'Keyword': '/task/'
        }, {
            'Keyword': '/static/'
        }, {
            'Keyword': '/edit/'
        }, {
            'Keyword': '/mall/'
        }, {
            'Keyword': '/event/'
        }, {
            'Keyword': '/historylist/'
        }, {
            'Keyword': '/history/'
        }, {
            'Keyword': '/user/'
        }, {
            'Keyword': '/usercenter'
        }, {
            'Keyword': '/wikiui/'
        }, {
            'Keyword': '/feedback'
        }, {
            'Keyword': 'passport'
        }, {
            'Keyword': '?force=1'
        }
    ])


if __name__ == '__main__':
    add_block_dict()
